GetComparisonFromComparer Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Given in IComparer<T> instenace that comparers two items from type T, gets a Comparison delegate that performs the same comparison.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static Comparison<T> GetComparisonFromComparer<T>(
	IComparer<T> comparer
)
Visual Basic (Declaration)
Public Shared Function GetComparisonFromComparer(Of T) ( _
	comparer As IComparer(Of T) _
) As Comparison(Of T)
Visual C++
public:
generic<typename T>
static Comparison<T>^ GetComparisonFromComparer (
	IComparer<T>^ comparer
)

Parameters

comparer
IComparer<(Of <T>)>
The IComparer<T> instance to use.

Return Value

A Comparison<T> delegate that performans the same comparing operation as comparer.

Type Parameters

T

See Also